/*     */ package com.yc.web.station;
/*     */ 
/*     */ import com.yc.dao.model.BTSBO;
/*     */ import com.yc.dao.model.BTSNewBO;
/*     */ import com.yc.service.station.BTSService;
/*     */ import com.yc.util.ListContentsBFO;
/*     */ import java.io.File;
/*     */ import java.util.List;
/*     */ import java.util.Map;
/*     */ import javax.servlet.ServletContext;
/*     */ import org.apache.poi.hssf.usermodel.HSSFCell;
/*     */ import org.apache.poi.hssf.usermodel.HSSFRow;
/*     */ import org.apache.poi.hssf.usermodel.HSSFSheet;
/*     */ import uk.ltd.getahead.dwr.WebContext;
/*     */ import uk.ltd.getahead.dwr.WebContextFactory;
/*     */ 
/*     */ public class BTSWeb
/*     */ {
/*     */   BTSService BTSService;
/*     */ 
/*     */   public BTSWeb()
/*     */   {
/*  29 */     this.BTSService = new BTSService();
/*     */   }
/*     */ 
/*     */   public ListContentsBFO getBTSList(Map condition) {
/*  33 */     return this.BTSService.getBTSList(condition);
/*     */   }
/*     */ 
/*     */   public ListContentsBFO getBTSNewBOList(Map condition) {
/*  37 */     return this.BTSService.getBTSNewBOList(condition);
/*     */   }
/*     */ 
/*     */   public boolean saveBTS(BTSBO bo)
/*     */   {
/*  42 */     if ((bo.getId() == null) || ("".equalsIgnoreCase(bo.getId().trim()))) {
/*  43 */       return this.BTSService.saveBTS(bo);
/*     */     }
/*  45 */     return this.BTSService.updateBTS(bo);
/*     */   }
/*     */ 
/*     */   public boolean saveBTSNewBO(BTSNewBO bo)
/*     */   {
/*  50 */     if ((bo.getId() == null) || ("".equalsIgnoreCase(bo.getId().trim()))) {
/*  51 */       return this.BTSService.saveBTSNewBO(bo);
/*     */     }
/*  53 */     return this.BTSService.updateBTSNewBO(bo);
/*     */   }
/*     */ 
/*     */   public boolean deleteBTS(String strID)
/*     */   {
/*  58 */     return this.BTSService.deleteBTS(strID);
/*     */   }
/*     */ 
/*     */   public boolean deleteBTSNewBO(String strID) {
/*  62 */     return this.BTSService.deleteBTSNewBO(strID);
/*     */   }
/*     */ 
/*     */   public ListContentsBFO getBTSByBtsName(Map condition) {
/*  66 */     return this.BTSService.getBTSByBtsName(condition);
/*     */   }
/*     */   public ListContentsBFO getBTSNewBOByBtsName(Map condition) {
/*  69 */     return this.BTSService.getBTSNewBOByBtsName(condition);
/*     */   }
/*     */ 
/*     */   public String createDownLoadPath()
/*     */   {
/*  75 */     String path = WebContextFactory.get().getServletContext().getRealPath("/");
/*  76 */     path = path + "downloadtemp" + File.separator;
/*  77 */     if (!new File(path).isDirectory()) {
/*  78 */       File file = new File(path);
/*  79 */       file.mkdir();
/*     */     }
/*  81 */     return path;
/*     */   }
/*     */ 
/*     */   public void exportBTS(String strBtsName)
/*     */   {
/*  94 */     throw new Error("Unresolved compilation problem: \n\tThe method export(String, String, String) in the type BTSService is not applicable for the arguments (String)\n");
/*     */   }
/*     */ 
/*     */   private void wirteToExcel(HSSFSheet sheet, List list)
/*     */   {
/* 135 */     HSSFRow row = sheet.createRow(0);
/* 136 */     row.createCell((short)0).setCellValue("obj.getId().getJobNo()");
/* 137 */     row.createCell((short)1).setCellValue("obj.getId().getComposeCode()");
/* 138 */     row.createCell((short)2).setCellValue("obj.getId().getClassifyType()");
/* 139 */     row.createCell((short)3).setCellValue("obj.getComposeName()");
/* 140 */     row.createCell((short)4).setCellValue("obj.getEndDate()");
/*     */   }
/*     */ }

/* Location:           E:\java\apache-tomcat-6.0.36\webapps\btsm\WEB-INF\classes\
 * Qualified Name:     com.yc.web.station.BTSWeb
 * JD-Core Version:    0.6.2
 */